package com.ssy.lingxi.pay.model.assetAccount;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * 订单服务 - 查询账户余额接口参数
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-03
 */
public class BalanceQueryVO implements Serializable {
    private static final long serialVersionUID = 2554547560965755920L;

    /**
     * 资金归集模式，1-平台代收，2-会员直接到账
     */
    @NotNull(message = "资金归集模式不能为空")
    @Min(value = 1, message = "资金归集模式: 1-平台代收，2-会员直接到账")
    @Max(value = 2, message = "资金归集模式: 1-平台代收，2-会员直接到账")
    private Integer fundMode;

    /**
     * 供应商会员Id
     */
    @NotNull(message = "供应商会员Id要大于0")
    @Positive(message = "供应商会员Id要大于0")
    private Long vendorMemberId;

    /**
     * 供应商会员角色Id
     */
    @NotNull(message = "供应商会员角色Id要大于0")
    @Positive(message = "供应商会员角色Id要大于0")
    private Long vendorRoleId;

    public Integer getFundMode() {
        return fundMode;
    }

    public void setFundMode(Integer fundMode) {
        this.fundMode = fundMode;
    }

    public Long getVendorMemberId() {
        return vendorMemberId;
    }

    public void setVendorMemberId(Long vendorMemberId) {
        this.vendorMemberId = vendorMemberId;
    }

    public Long getVendorRoleId() {
        return vendorRoleId;
    }

    public void setVendorRoleId(Long vendorRoleId) {
        this.vendorRoleId = vendorRoleId;
    }
}
